package com.foreknow.demo;

import com.foreknow.dao.UserDao;
import com.foreknow.dao.UserDaoImpl;
import com.foreknow.model.User;

public class TestDao {
  public static void main(String[] args) {
    UserDao userDao = new UserDaoImpl();
    User user = new User();
    user.setUsername("tom");
    try {
      userDao.add(user);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
